import request from "@/utils/request";

// 查询反诈宣传列表
export function listAntifraudPropaganda(query) {
  return request({
    url: "/regulations/listPage",
    method: "get",
    params: query,
  });
}

// 查询反诈宣传详细（根据Id查询单个）
export function getAntifraudPropagandaById(query) {
  return request({
    url: "/regulations/selectOne",
    method: "get",
    params: query,
  });
}

// 新增反诈宣传
export function addAntifraudPropaganda(data) {
  return request({
    url: "/regulations/add",
    method: "post",
    data: data,
  });
}

// 修改反诈宣传
export function updateAntifraudPropaganda(data) {
  return request({
    url: "/regulations/update",
    method: "put",
    data: data,
  });
}

// 删除反诈宣传
export function delAntifraudPropaganda(Id) {
  return request({
    url: "/regulations/delete/" + Id,
    method: "delete",
  });
}
